JavaScript Essentials for SAP ABAP Developers: A Guide to Mobile and Desktop Application Development by Rehan Zaidi
Author: Rehan Zaidi [Rehan Zaidi] , Date: March 11, 2020
, Views: 204
Listing 5-10. ignoreCase Property Example
<html>
<body>
<script>
var pattern1 = /Java/i;
console.log("IgnoreCase property is set:" + pattern1.ignoreCase);
var pattern2 = /Java/;
console.log("IgnoreCase property is set:" + pattern2.ignoreCase);
</script>
</body>
</html>
This example first declares regular expression pattern pattern1. In this case, the i modifier is specified, making it ignore the case. Next, the example declares pattern2 /Java/ without the ignoreCase modifier. In both cases, the output using the console.log method is generated for the ignoreCase property, as shown in Figure 5-10.
Copyright Disclaimer:
This site does not store any files on its server. We only index and link
to content provided by other sites. Please contact the content providers
to delete copyright contents if any and email us, we'll remove relevant
links or contents immediately.